36cb9dae72e394fffe571537f6b30e1583346ddb,src/dk/jens/backup/LogFile.java,LogFile,writeLogFile,#File#AppInfo#,143

Before Change


         * in the future there will only be one writeLogFile
         * and it will take a File and an AppInfo as parameters.
         */
        writeLogFile(backupSubDir, appInfo.getPackageName(), appInfo.getLabel(), appInfo.getVersionName(), appInfo.getVersionCode(), appInfo.getSourceDir(), appInfo.getDataDir(), appInfo.isSystem(), appInfo.getBackupMode());
    }
    public static void writeLogFile(File backupSubDir, String packageName, String label, String versionName, int versionCode, String sourceDir, String dataDir, boolean isSystem, int backupMode)
    {

After Change


            jsonObject.put("sourceDir", appInfo.getSourceDir());
            jsonObject.put("dataDir", appInfo.getDataDir());
            jsonObject.put("lastBackupMillis", System.currentTimeMillis());
            jsonObject.put("isSystem", appInfo.isSystem());
            jsonObject.put("backupMode", appInfo.getBackupMode());
            String json = jsonObject.toString(4);
            File outFile = new File(backupSubDir.getAbsolutePath() + "/" + appInfo.getPackageName() + ".log");